﻿using System.Windows;
using Microsoft.Phone.Controls;
using Microsoft.Devices.Sensors;

namespace UnitDriven
{
	public partial class ErrorDetails : PhoneApplicationPage
	{
		private TestContext context;

		public ErrorDetails(IRunTests test, TestContext context)
		{
			this.context = context;
			DataContext = test;
			InitializeComponent();
		}

		private void Back_Click(object sender, RoutedEventArgs e)
		{
			var engine = new TestEngine(context);
			Application.Current.RootVisual = engine;
		}
	}
}
